import request from "@/utils/request";
//医废分类科室报表
export function classifyDepartReport(data) {
  return request({
    method: "post",
    url: "/waste/wasteBase/classifyDepartReport",
    data
  });
}

//医废分类报表
export function classifyReport(data) {
  return request({
    method: "post",
    url: "/waste/wasteBase/classifyReport",
    data
  });
}
//医废状态报表
export function statusReport(data) {
  return request({
    method: "post",
    url: "/waste/wasteBase/statusReport",
    data
  });
}
//医废列表
export function wasteBaseGetList(data) {
  return request({
    method: "post",
    url: "/waste/wasteBase/getList",
    data
  });
}
//医废详情
export function getWarnTimeAndWeight(wasteBaseId) {
  return request({
    method: "get",
    url: `/waste/warnBase/getWarnTimeAndWeight/${wasteBaseId}`
  });
}

//医废详情
export function getListByWasteId(wasteBaseId) {
  return request({
    method: "get",
    url: `/waste/wasteRecord/getListByWasteId/${wasteBaseId}`
  });
}

//字典
export function getListByType(data) {
  return request({
    method: "get",
    url: `/waste/sysDiction/getListByType?type=waste_classify`
  });
}

//导出
export function exportList(data) {
  return request({
    method:"post",
    responseType: "blob",
    url:'/waste/wasteBase/exportList',
    data
  })
}